package user.zc.action.comp;

import javax.swing.*;

/**
 * @author zhouchuang
 * @date 2023/8/11 14:13
 */
public class ITextArea extends JTextArea implements IField{
    private String label;
    private String defaultValue;
    public ITextArea(String label, String name, String defaultText,int rows, int columns){
        super(rows,columns);
        setName(name);
        this.setText(defaultText);
        this.label = label;
        this.defaultValue  = defaultText;
        this.setWrapStyleWord(true);
        this.setLineWrap(true);
    }

    @Override
    public String getLabel() {
        return this.label;
    }

    @Override
    public String getDefaultValue() {
        return this.defaultValue;
    }
}
